﻿@model ICDA.Web.Models.MenuViewModel
@{
    Layout = null;
}
@if (Model.IsAuthenticated && Model != null)
{
    <ul class="navMenu">
        <li>@Html.ActionLink("Home", "Index", "Home")</li>
        <li><a href="#" title="" id="TaskMenu" runat="server">Time Sheet </a>
        <ul>
            <li>@Html.ActionLink("Daily Activity", "Activity", "Home")</li>
            <li>@Html.ActionLink("Daily Activity Logs", "ActivityHistory", "Home")</li>
        </ul>
        </li>
        
        <li>@Html.ActionLink("My Account", "MyAccount", "Account")</li>
        <li>@Html.ActionLink("Leave", "LeaveApply", "Leave")</li>
        <li>@Html.ActionLink("Know Your Team", "KnowYourTeam", "Home")</li>
        @if (Model.IsAdmin)
        {
            <li><a href="#" title="" id="AdminMenu" runat="server">Admin</a>
                <ul>
                    <li>@Html.ActionLink("Add User", "AddUser", "Admin")</li>
                    <li>@Html.ActionLink("Leave Dashboard", "LeaveAccount", "Admin")</li>
                    <li>@Html.ActionLink("User Accounts", "UserAccount", "Admin")</li>
                    <li>@Html.ActionLink("User Activity", "UserActivity", "Admin")</li>
                </ul>
            </li>
        }
    </ul>
}
